wayland: Don't call _gdk_surface_update_size() all the time
authorBenjamin Otte <otte@redhat.com>
Tue, 9 Mar 2021 18:50:56 +0000 (19:50 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 9 Mar 2021 18:50:56 +0000 (19:50 +0100)
commitb63c4d67229107ef54367fbabc8e3559dff10bdf
tree21c6d3b2ddf5ac69d2ebfea31dcccaa15a0c9baf
parentfea67dea6acad0504adeb6d36af9e8fbd975dc1e
wayland: Don't call _gdk_surface_update_size() all the time

We were calling _gdk_surface_update_size() every frame, even if the
window size didn't change. This would cause us to discard all cached
buffers and redraw the whole screen.

This was BAD.
gdk/wayland/gdksurface-wayland.c